package com.itic.appbase.framework.type;

/**
 * 视频图片类型枚举
 */
public enum ImageVideoType {

    Image("image","图片"),Viedo("video","视频");

    private String type;
    private String name;

    ImageVideoType(String type, String name) {
        this.type = type;
        this.name = name;
    }

    public String getType() {
        return type;
    }

    public String getName() {
        return name;
    }

    public void setType(String type) {
        this.type = type;
    }

    public void setName(String name) {
        this.name = name;
    }

    public static ImageVideoType getImageVieoType(String type){
        ImageVideoType imageVieoType = null;
        switch (type){
            case "image":
                imageVieoType = ImageVideoType.Image;
                break;
            case "video":
                imageVieoType = ImageVideoType.Viedo;
                break;
        }
        return imageVieoType;
    }
}
